package com.lj.service;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.lj.dao.EmpDao;
import com.lj.entity.Emp;
import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmpServiceImpl implements EmpService {
  @Autowired
  EmpDao empDao;
    @Override
    public List<Emp> QueryAllEmp() {
        return empDao.QueryAllEmp();
    }

  @Override
  public int AddEmp(Emp emp) {
    return empDao.AddEmp(emp);
  }

  @Override
  public Emp editEmp(int id) {
    return empDao.editEmp(id);
  }

  @Override
  public int deleteEmp(int id) {
    return empDao.deleteEmp(id);
  }

  @Override
  public int updateEmp(Emp emp) {
    return empDao.updateEmp(emp);
  }


}
